import Vue from 'vue'
import VueRouter from 'vue-router'
import AreaTopPage from '../views/AreaTopPage.vue'
import Harvest from '../views/Harvest.vue'
import Plant from '../views/plant.vue'
import Cropmap from '../views/Cropmap.vue'
import Shi from '../views/shi.vue'
import Line from '../views/line.vue'
import Home from '../views/Home.vue'
Vue.use(VueRouter)

const routes = [
 {
    path:'/area',
    component:AreaTopPage
  },
  {
    path:'/har',
    component:Harvest
  },{
    path:'/plant',
    component:Plant
  },{
    path:'/map',
    component:Cropmap
  },{
    path:'/shi',
    component:Shi
  },{
    path:'/line',
    component:Line
  },{
    path:'/home',
    component:Home
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
